package org.jeecg.modules.tls.training.trainingUser.service.impl;

import org.jeecg.modules.tls.training.trainingUser.entity.TrainingUser;
import org.jeecg.modules.tls.training.trainingUser.mapper.TrainingUserMapper;
import org.jeecg.modules.tls.training.trainingUser.service.ITrainingUserService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.HashMap;

/**
 * @Description: 选择培训用户
 * @Author: jeecg-boot
 * @Date:   2023-03-27
 * @Version: V1.0
 */
@Service
public class TrainingUserServiceImpl extends ServiceImpl<TrainingUserMapper, TrainingUser> implements ITrainingUserService {

    @Override
    public void deleteByTrainingUserMap(String id) {
        HashMap<String,Object> map = new HashMap<>();
        map.put("training_id",id);
        baseMapper.deleteByMap(map);
    }
}
